NWNXDIR  = ../..
CPPFLAGS = $(PLUGIN_CPPFLAGS) -I$(NWNXDIR)
LFLAGS   = $(PLUGIN_LFLAGS)

all: nwnx_planner.so

nwnx_planner.so: NWNXPlanner.o plugin-planner.o
	$(CXX) $(LFLAGS) -o $@ $^ $(LIBS) $(DEFS)

clean:
	/bin/rm -f *.o *.so *~

distclean: clean
	/bin/rm -f Makefile

install: nwnx_planner.so
	mkdir -p @prefix@/ ; install nwnx_planner.so @prefix@/
